﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@using Kunlun.BusinessLogic
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>@ViewBag.Title</title>
	<link href="@Url.Content("~/Content/base/base.css")" rel="stylesheet" type="text/css" />
	<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
	@RenderSection("Head", required: false)
	<script language="javascript">
		$(function () {
			$.post("/MyKunlun/GetCarts",
                    function (data) {
                    	$("#mycart").html("购物车(" + data.Count + ")");
                    });
		});
		//等比缩放图片
         function DrawImage(ImgD, kw, kh) {
          
			var image = new Image();
			image.src = ImgD.src;
			if (image.height < image.width)//说明宽》高＝＝》以宽为标准
			{
				if (image.width > kw) {
					ImgD.width = kw;
					ImgD.height = (image.height * kw) / image.width;
					ImgD.style.marginTop = (kh - (image.height * kw) / image.width) / 2 + "px";
					ImgD.style.marginBottom = ImgD.style.marginTop;
				}
				else {
					ImgD.width = image.width;
					ImgD.height = image.height;
				}
			}
			else//以高为标准
			{
				if (image.height > kh) {
					ImgD.height = kh;
					ImgD.width = (image.width * kh) / image.height;
					ImgD.style.marginLeft = (kw - (image.width * kh) / image.height) / 2 + "px";
					ImgD.style.marginRight = ImgD.style.marginLeft;
				}
				else {
					ImgD.width = image.width;
					ImgD.height = image.height;
				}
			}
		}
	</script>
</head>
<body>
<center>
	<ul class="header">
		<li class="help"><a href="/Help/Question/1" class="help">帮 助</a></li><li class="car">
			<a href="/MyKunlun/Cart" id="mycart">购物车</a></li>
		@Html.Partial("_LogOnPartial")
		<li class="logo"></li>
	</ul>
	<div class="sitemap">
		<a href="/">首 页</a>
		@{
			
            foreach (Kunlun.Models.Category c in KunlunCategory.GetIndexMenu())
                {
					<a href="@Url.Content("~/Store/Frame/Search?Classid=" + c.ID)">@c.Cname</a>
			}
	  
		}
		
	</div>
	<div class="hot_key">
		热卖关键字：<a href="#">奥运</a></div>
	<div class="main_search">
		搜 索：<input class="input " id="MainSearch" />
		<input class="sub" type="button" value="搜 索" onclick="if(document.getElementById('MainSearch').value.length > 0){location.href='/Store/Frame/Search?Name='+escape(document.getElementById('MainSearch').value);}else{alert('请输入要搜索的关键字！');}" /></div>
	@RenderBody()
	<div class="footer">
		<p class="subNav">
			<a href='@Url.Content("~/Help/Question/23")'>关于昆仑</a> | <a href="@Url.Content("~/Help/Question/24")">
				诚聘精英</a> | <a href="@Url.Content("~/Help/Question/1")">帮助中心</a> | <a href="@Url.Content("~/Help/Question/25")">
					联系我们</a> | <a href="@Url.Content("~/Help/Question/26")">网站地图</a>
		</p>
		<p>
			公司地址：杭州市西溪路133号黄龙世纪商铺2楼</p>
		<p>
			浙ICP备05053899号 Copyright 2009 &copy; 杭州昆仑数码影像设备有限公司 All rights reserved
		</p>
		
	</div>
    </center>
</body>
</html>
